package com.stedu.mapper;

import com.stedu.bean.Account;
import com.stedu.bean.Admin;
import org.apache.ibatis.annotations.Param;


import java.util.List;


public interface AdminMapper {
    //查询所有用户
    List<Admin> selectAll();

    //添加用户
    int insertAdmin(Admin admin);

    //删除用户
    int deleteAdmin(Integer aid);

    //修改用户
    int updateAdmin(Admin admin);

    //根据用户姓名查询
    List<Admin> selectByAname(String aname);

    //根据用户ID查询
    Admin selectByAid(Integer aid);

    //根据账号查询
   Admin selectByUsername(String ausername);


}
